home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / always-mute.sh next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  395b  |  11 lines

  1. #!/bin/sh
  2. # on ThinkPads, the volume keys always performs mute,
  3. # regardless of the previous state;  for the moment
  4. # we fake this by "always" unmuting and then remuting.
  5. # Kludge/behaviour copied over from 'thinkpad-keys'
  6. #  -Paul Sladen 2007-09-13
  7. [ -f /usr/share/acpi-support/key-constants ] || exit 0
  8. . /usr/share/acpi-support/key-constants
  9. acpi_fakekey $KEY_VOLUMEUP
  10. acpi_fakekey $KEY_MUTE
  11.